package com.zb.frame.modules.sys.mapper;

import com.zb.frame.modules.sys.entity.RelUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author bangZZ
 * @since 2020-06-04
 */
@Repository
public interface RelUserRoleMapper extends BaseMapper<RelUserRole> {

    List<RelUserRole> getUserInfoByRoleId(String roleId);

    List<RelUserRole> getRoleInfoByUserId(Long userId);

    int deleteByUserIdAndRoleIds(Map<String, Object> params);
}
